package com.chenjinyan.back.dao;

import com.chenjinyan.back.entity.PicEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.stereotype.Repository;

import javax.transaction.Transactional;

@Repository
public interface PicRepository extends JpaRepository<PicEntity, Long> {

    @Override
    @Modifying
    @Transactional
    PicEntity saveAndFlush(PicEntity picEntity);
}
